home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
015a
/
wtil21.zip
/
DEMO.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-12-05
|
829b
|
33 lines
@echo off
rem DEMO.BAT - demonstrates WaitTil
cls
echo This batch file really doesn't do anything. It's an example
echo of how to execute timed backups.
pause
cls
ECHO Please be sure that you have selected the correct backup
echo tape, then insert the tape into the drive.
echo
pause
CLS
rem Change the 20:00 in the next line to the actual time you want the
rem backup to start
WAITTIL 20:00 BACKUPS PENDING - DO NOT DISTURB /N
if errorlevel 2 goto Error
if errorlevel 1 goto Aborted
rem Backup starts here
cls
rem TAPE BACKUP C:\ /s
echo IF THIS WERE A REAL BACKUP, IT WOULD BE EXECUTING NOW
pause
goto End
:Error
Echo A PROBLEM HAS OCCURRED!!
pause
goto End
:Aborted
echo TERMINATED BY USER!
pause
:End